import type { PaginationStatus } from 'convex/react';

import type { Doc, Id } from '../../../../../convex/_generated/dataModel';

export interface DocumentTableProps {
  documents: Doc<'documents'>[] | undefined;
  loadMore: (numItems: number) => void;
  status: PaginationStatus;
}

export interface DocumentRowProps {
  document: Doc<'documents'>;
}

export interface DocumentMenuProps {
  documentId: Id<'documents'>;
  title: string;
  onNewTab: (id: Id<'documents'>) => void;
}
